package world.zwq.gulimall.ware.feigin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import world.zwq.common.utils.R;

@FeignClient("gulimall-gateway")
public interface ProductFeignService {

    /**
     * /product/skuinfo/info/{skuId}
     * /api/product/skuinfo/info/{skuId}
     *
     * 1）、让所有请求过网关
     *      1、@FeignClient("gulimall-gateway")
     * 2)、给后台指定服务处理
     * @param skuId
     * @return
     */
    @RequestMapping("/api/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

}
